home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / while.n < prev    next >
Text File  |  1995-07-25  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      wwwwhhhhiiiilllleeee((((nnnn))))                     TTTTccccllll (((( ))))                     wwwwhhhhiiiilllleeee((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           while - Execute script repeatedly as long as a condition  is
  12.           met
  13.  
  14.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  15.           wwwwhhhhiiiilllleeee _t_e_s_t _b_o_d_y
  16.      _________________________________________________________________
  17.  
  18.  
  19.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.           The _w_h_i_l_e command evaluates _t_e_s_t as an  expression  (in  the
  21.           same  way  that  eeeexxxxpppprrrr evaluates its argument).  The value of
  22.           the expression must a proper boolean value; if it is a  true
  23.           value  then  _b_o_d_y  is  executed  by  passing  it  to the Tcl
  24.           interpreter.  Once _b_o_d_y  has  been  executed  then  _t_e_s_t  is
  25.           evaluated  again,  and  the process repeats until eventually
  26.           _t_e_s_t evaluates to a false boolean value.  CCCCoooonnnnttttiiiinnnnuuuueeee  commands
  27.           may  be  executed  inside  _b_o_d_y  to  terminate  the  current
  28.           iteration of the loop, and bbbbrrrreeeeaaaakkkk commands  may  be  executed
  29.           inside  _b_o_d_y  to  cause  immediate  termination of the wwwwhhhhiiiilllleeee
  30.           command.  The wwwwhhhhiiiilllleeee command always returns an empty string.
  31.  
  32.  
  33.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  34.           boolean value, loop, test, while
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/17/95)
  64.  
  65.  
  66.  
  67.